package com.sky.client;

import com.sky.entity.AddressBook;
import com.sky.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "sky-server-address")
public interface AddressBookClient {
    
    /**
     * 根据id查询地址
     * @param id
     * @return
     */
    @GetMapping("/user/addressBook/{id}")
    Result<AddressBook> getById(@RequestParam Long id);
}